package com.woniu.order.controller;

import com.woniu.common.utils.ResponseData;
import com.woniu.order.dto.InvoiceDto;
import com.woniu.order.pojo.Invoice;
import com.woniu.order.service.InvoiceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class InvoiceController {
    @Autowired
    private InvoiceService invoiceService;
    @PostMapping("/addInvoice")
    public ResponseData<?> addInvoice(@RequestBody InvoiceDto invoice) {
        return invoiceService.addInvoice(invoice);
    }
}
